//
//  VoiceCell.m
//  TravelToHelp
//
//  Created by lanou3g on 15/11/5.
//  Copyright © 2015年 冯贵宾. All rights reserved.
//

#import "VoiceCell.h"

@implementation VoiceCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addCellView];
    }
    return self;
}

- (void)addCellView
{
    self.musicIMGView = [[UIImageView alloc] initWithFrame:CGRectMake(25, 5, 100, 100)];
    self.musicIMGView.backgroundColor = [UIColor purpleColor];
    [self addSubview:self.musicIMGView];
    
    self.playBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    self.playBtn.frame = self.musicIMGView.frame;
    self.playBtn.backgroundColor = [UIColor blueColor];
    self.playBtn.alpha = 0.4;
    [self addSubview:self.playBtn];
    
    self.musicTitleTXT = [[UILabel alloc] initWithFrame:CGRectMake(145, 5, kScreenWidth - 100 - 10 - 60, 35)];
    self.musicTitleTXT.backgroundColor = [UIColor redColor];
    [self addSubview:self.musicTitleTXT];
    
    self.singerNameTXT = [[UILabel alloc] initWithFrame:CGRectMake(145, 110 - 5 - 35, kScreenWidth - 100 - 60 - 10, 35)];
    self.singerNameTXT.backgroundColor = [UIColor grayColor];
    [self addSubview:self.singerNameTXT];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
